<%-- 
    Document   : adminReportDetailByYear
    Created on : Oct 21, 2013, 3:24:42 PM
    Author     : h10t93
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>report by year!</h1>
        <form name="frm" method="POST">

            <p>Year:</p> <input type="text" name="txt_year_detail1"/>
            <input type="submit" name="view" onclick="frm.action='ManageServlet?action=reportDetailByYear'"/>
            <tr>
                <th style="width: 150px">Complaint ID</th>
                <th style="width: 100px">User ID</th>
                <th style="width: 200px">User Name</th>
                <th style="width: 200px">Category</th>
                <th style="width: 200px">Departments User</th>
                <th style="width: 200px">Name Technician</th>
                <th style="width: 100px">Date Lodging<th>
                <th style="width: 100px">Date Closing</th>

            </tr>            
            <c:forEach var="p" items="${sessionScope['sdetailByYear']}">
                <tr>
                    <td style="width: 150px">${p.idComplaint}</td>
                    <td style="width: 100px">${p.idUser}</td>
                    <td style="width: 200px">${p.nameUser}</td>
                    <td style="width: 200px">${p.compCategory}</td>
                    <td style="width: 200px">${p.departmentUser}</td>
                    <td style="width: 200px">${p.nameTechnician}</td>
                    <td style="width: 100px"> ${p.dateLodging}</td>
                    <td style="width: 100px">${p.dateClose}</td>

                </tr>
            </c:forEach>
        </table>
    </form>
</body>
</html>
